﻿using Avalonia.Controls;
using AvaloniaEdit;
using AvaloniaEdit.Document;
using System.Resources;
using System.Security.Cryptography.X509Certificates;
using System;

namespace AvalSqlIndexManager.Views;

public partial class MainView : UserControl
{
    private readonly TextEditor? _textEditor;
    public MainView()
    {
        InitializeComponent();
        _textEditor = this.FindControl<TextEditor>("textEditor");
        _textEditor!.Options = new TextEditorOptions
        {            
            AllowScrollBelowDocument = true,
            WordWrapIndentation = 0 // 设置换行缩进
        };
    }
}
